</div>  

<div id="front-popular" class="clearfloat">

<div id="recentpost" class="clearfloat">
<?php 	/* Widgetized sidebar, if you have the plugin installed. */ 					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(5) ) : ?> 	
<h3><?php _e('Recent Posts','arthemia');?></h3>
<ul>
 <?php $the_query = new WP_Query('showposts=5&orderby=post_date&order=desc');	
         while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID; ?>
        <li><a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
        <?php endwhile; ?>	
</ul>	
<?php endif; ?></div> 		

<div id="mostcommented" class="clearfloat">


<?php 	/* Widgetized sidebar, if you have the plugin installed. */ 					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(6) ) : ?> 
<h3>Most Commented</h3>
<ul><?php $result = $wpdb->get_results("
	SELECT comment_count,ID,post_title
    FROM $wpdb->posts
    ORDER BY comment_count DESC
    LIMIT 0 , 5"); 	
    
    foreach ($result as $topfive) {
        $postid = $topfive->ID; 	
        $title = $topfive->post_title;
        $commentcount = $topfive->comment_count;
        if ($commentcount != 0) { ?><li><a href="<?php echo get_permalink($postid); ?>" title="<?php echo $title ?>"><?php echo $title ?></a></li><?php } } ?>
</ul>
<?php endif; ?>
</div>

<div id="recent_comments" class="clearfloat">
<?php 	/* Widgetized sidebar, if you have the plugin installed. */ 					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(7) ) : ?> 

<?php if (function_exists('get_most_viewed')): ?>
<h3>Most Viewed</h3>
<ul>
   <?php get_most_viewed('post',5); ?>
</ul>
<?php endif; ?>

<?php endif; ?>
</div>
</div>

<div id="footer"> <?php wp_footer(); ?> Powered by <a href="http://wordpress.org/">WordPress</a> | <a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a> | <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a> | <a href="http://demo.colorlabsproject.com/arthemiafree/" target="_blank">Arthemia</a> theme by <a href="http://colorlabsproject.com" target="_blank">ColorLabs Project</a> | Valid <a href="http://validator.w3.org/check?uri=http%3A%2F%2Fdemo.colorlabsproject.com%2Farthemiafree%2F" target="_blank">XHTML and CSS</a>

<span class="right"><a href="http://bandungbanget.com" target="_blank">Bandung - Indonesia</a></span>

<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->

</div>

</body>
</html>